package com.zy.springboot.back;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Bean;

@SpringBootTest(classes = lifebacktest.class)
public class lifebacktest {
    @Bean
    public myService myService(){
        return new myService();
    }
    @Test
    public void test(@Autowired myService myService){
        System.out.println(myService.getClass());

    }
}
